<template>
    <div style="background-color: yellowgreen;">
        <a href="#" @click="activeC = 'MDao1'">111</a><br>
        <a href="#" @click="activeC = 'MDao2'">222</a><br>
        <a href="#" @click="activeC = 'MDao3'">333</a>
        <component :is="activeC"></component>
    </div>
</template>
<script>
import MDao1 from './MDao1.vue';
import MDao2 from './MDao2.vue';
import MDao3 from './MDao3.vue';

export default {
    data() {
        return {
            activeC:''
        }
    },
    components:{
        MDao1,
        MDao2,
        MDao3
    }
}
</script>